package dssd.gui;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSplitPane;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class PopUpMensaje  extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JButton jButton1;
	private JLabel jLabel1;

	public PopUpMensaje(String msj) {
		super();
		initGUI(msj);
	}
	
	private void initGUI(String msj) {
		try {
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1, BorderLayout.CENTER);
				jPanel1.setPreferredSize(new java.awt.Dimension(267, 167));
				{
					jLabel1 = new JLabel();
					jPanel1.add(jLabel1);
					jLabel1.setText(msj);
					jLabel1.setPreferredSize(new java.awt.Dimension(235, 104));
				}
				{
					jButton1 = new JButton();
					jPanel1.add(jButton1);
					jButton1.setText("Cerrar");
					jButton1.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							cerrar();
						}
					});
				}
			}
			pack();
			this.setAlwaysOnTop(true);
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	public void cerrar(){
		this.setVisible(false);
	}
}